// ActionScript file
import com.adobe.cairngorm.control.CairngormEventDispatcher;

import flash.events.Event;

import mx.events.ListEvent;

import net.optix.ip.events.GetActionsEvent;
import net.optix.ip.model.ModelLocator;
import net.optix.ip.vo.InventionVO;

import views.ViewInstance;

[Bindable]
private var model:ModelLocator	=	ModelLocator.getInstance();

private function selectInvention(event:Event):void
{
	var index:int	=	DataGrid(event.target).selectedIndex;
	if(index >= 0)
	{
		
	}

	if(event.type == ListEvent.ITEM_DOUBLE_CLICK)
	{
		model.currentInvention	=	InventionVO(DataGrid(event.target).selectedItem);
		model.view	=	0;
		model.view	=	ViewInstance.ViewInvention;
		model.oldView=	ViewInstance.ViewBids;
		model.inventionView	=	ViewInstance.AuctionInformation;
	}
}